<template>
  <div id="app">
    <!--
      将外层包裹一个KeepAlive标签
      把DOM元素驻留再内存中，防止DOM重新渲染
     -->
    <keep-alive>
      <router-view/>
    </keep-alive>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
</style>
